package com.jcl.elasticsearch.resume.logic;

import com.jcl.elasticsearch.mapper.SearchResumeMapper;
import com.jcl.elasticsearch.resume.model.SearchResume;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SearchResumeLogic
 * @Description TODO
 * @Author yyliu
 * @Date 2018/11/13 10:32
 * @Version 1.0
 **/
@Component
public class SearchResumeLogic implements SearchResumeMapper {

    @Autowired
    SearchResumeMapper searchResumeMapper;

    @Override
    public List<Map<String, Object>> findAll() {
        return searchResumeMapper.findAll();
    }

    @Override
    public Map<String, Object> findOneMap(Integer id) {
        return searchResumeMapper.findOneMap(id);
    }

    @Override
    public SearchResume findOne(Integer id) {
        return searchResumeMapper.findOne(id);
    }

    @Override
    public int add(SearchResume searchResume) {
        return searchResumeMapper.add(searchResume);
    }

    @Override
    public int update(SearchResume searchResume) {
        return searchResumeMapper.update(searchResume);
    }
}
